package com.mrjy.common.util;

/**
 * Created by lyon on 2017/7/11 0011.
 */

import net.sf.json.JSONException;

import net.sf.json.util.PropertySetStrategy;


public class PropertyStrategyWrapper extends PropertySetStrategy {


    private PropertySetStrategy original;


    public PropertyStrategyWrapper(PropertySetStrategy original) {

        this.original = original;

    }


    @Override

    /**
     * @Author : lyon
     * @Description :
     * @param : No such property: code for class: Script1
     * @Date : 上午 10:58 2017/7/11 0011
     */
    public void setProperty(Object o, String string, Object o1) throws JSONException {

        try {

            original.setProperty(o, string, o1);

        } catch (Exception ex) {

            //ignore

        }

    }
}